babl: Fix message printed when memory function pointers don't match
authorMukund Sivaraman <muks@banu.com>
Wed, 3 Sep 2014 04:39:55 +0000 (10:09 +0530)
committerMukund Sivaraman <muks@banu.com>
Wed, 3 Sep 2014 04:39:55 +0000 (10:09 +0530)
babl/babl-memory.c

index ff171d7ff83df871092f8208c3412eb421c0973a..f0291e79b9667d2a1209e6afa9bb880df33b18de 100644 (file)
@@ -92,8 +92,8 @@ functions_sanity (void)
       else
         {
           fprintf (stderr, "HMM....\nSomething strange is happening,\n%s function pointer changing between invocations in babl.\n",
-              first_malloc_used == malloc_f ? 
-              first_free_used == free_f ? "malloc and free" : "malloc" : "free");
+                   first_malloc_used == malloc_f ? "free" :
+                   (first_free_used == free_f ? "malloc" : "malloc and free"));
         }
     }
 }